// JavaScript Document
function loadTemplate(id)
	{
		window.location.href='?do=yuyue_email&action=template&id='+id;
	}
function sendTestEmail()
	{	
		var obj=$DE('allow');
		l=document.getElementsByName("issmtp");
		for(i=0;i<l.length;i++)  
		{  
			if(l[i].checked)   var issmtp =l[i].value;
		}  
		var smtp_host=$DE('smtp_host').value;
		var smtp_port=$DE('smtp_port').value;
		var smtp_email=$DE('smtp_email').value;
		var smtp_pw=$DE('smtp_pw').value;
		var test_email=$DE('test_email').value;
		//alert(test_email);
		var myajax = new DedeAjax(obj,'false','true','-','系统错误。。。','邮件发送中。。。');
		myajax.AddKeyUtf8('issmtp',issmtp);
		myajax.AddKeyUtf8('smtp_host',smtp_host);
		myajax.AddKeyUtf8('smtp_port',smtp_port);
		myajax.AddKeyUtf8('smtp_email',smtp_email);
		myajax.AddKeyUtf8('smtp_pw',smtp_pw);
		myajax.AddKeyUtf8('test_email',test_email);
		myajax.AddKeyUtf8('isajax','1');
		myajax.SendPost('?do=yuyue_email');
	}